
namespace Himall.Entity
{
    using System;
    using System.Collections.Generic;
    /// <summary>
    /// 商家红包
    /// </summary>
    public partial class ShopBonusInfo:BaseModel
    {       
        long _id;
        public new long Id { get{ return _id; } set{ _id=value; base.Id = value; } }
        public long ShopId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 红包数量
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 随机范围Start
        /// </summary>
        public decimal RandomAmountStart { get; set; }
        /// <summary>
        /// 随机范围End
        /// </summary>
        public decimal RandomAmountEnd { get; set; }
        /// <summary>
        /// 1:满X元使用 2：没有限制
        /// </summary>
        public UseStateType UseState { get; set; }
        /// <summary>
        /// 满多少元
        /// </summary>
        public decimal UsrStatePrice { get; set; }
        /// <summary>
        /// 满多少元才发放红包
        /// </summary>
        public decimal GrantPrice { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public System.DateTime DateStart { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public System.DateTime DateEnd { get; set; }
        /// <summary>
        /// 红包有效时间
        /// </summary>
        public System.DateTime BonusDateStart { get; set; }
        /// <summary>
        /// 红包有效时间
        /// </summary>
        public System.DateTime BonusDateEnd { get; set; }
        /// <summary>
        /// 分享
        /// </summary>
        public string ShareTitle { get; set; }
        /// <summary>
        /// 分享
        /// </summary>
        public string ShareDetail { get; set; }
        /// <summary>
        /// 分享
        /// </summary>
        public string ShareImg { get; set; }
        /// <summary>
        /// 是否同步到微信卡包，是的话才出现微信卡卷相关UI
        /// </summary>
        public bool SynchronizeCard { get; set; }
        /// <summary>
        /// 微信卡卷相关
        /// </summary>
        public string CardTitle { get; set; }
        /// <summary>
        /// 微信卡卷相关
        /// </summary>
        public string CardColor { get; set; }
        /// <summary>
        /// 微信卡卷相关
        /// </summary>
        public string CardSubtitle { get; set; }
        /// <summary>
        /// 是否失效
        /// </summary>
        public bool IsInvalid { get; set; }
        /// <summary>
        /// 领取数量
        /// </summary>
        public Nullable<int> ReceiveCount { get; set; }
        /// <summary>
        /// 二维码路径
        /// </summary>
        public string QRPath { get; set; }
        /// <summary>
        /// 微信卡卷审核状态
        /// </summary>
        public int WXCardState { get; set; }
    
        public virtual ICollection<ShopBonusGrantInfo> Himall_ShopBonusGrant { get; set; } = new HashSet<ShopBonusGrantInfo>();
        public virtual ShopInfo Himall_Shops { get; set; }
    }
}
